You Can't Pass an Array to an External Function Error
You'll get this on the Declare statement if you define one of its parameters as an array.
Declare statement.